package us.wili.dev.model.validator.annotation;

import us.wili.dev.model.validator.valid.LoginChannelValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;

/**
 * @author wkx
 * @date 2018/9/18 10:55
 */
@Target({FIELD, METHOD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = LoginChannelValidator.class)
public @interface LoginChannel {

    String message() default "请输入正确的渠道编号";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
